﻿using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Dependency;

namespace YNTK.EIMS.Entitys.Suppliers
{
    /// <summary>
    /// 添加供应商评价请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddSupplierEvaluateRequestModel
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        [Required(ErrorMessage = "供应商标识不能为空")]
        public string supplierId { get; set; }

        /// <summary>
        /// 评价类型(0.好评 1.中评 2.差评)
        /// </summary>
        [Required(ErrorMessage = "评价结果标识不能为空")]
        public EvaluateTypeEnum type { get; set; }

        /// <summary>
        /// 评价内容,限制在500字以内
        /// </summary>
        public string description { get; set; }
    }
}
